<template>
    <div>
        路由组件2
        <br>
        <router-link to="/Child">Child</router-link>
        <router-view></router-view>
    </div>
</template>

<script>
    export default {
        data(){
            return{

            }
        },
        mounted(){
            // console.log(this.$route)
        },
        beforeEnter(){
            console.log('beforeEnter')
        }
    }
</script>

<style scoped>

</style>